<template>
    <div class="drawerContainer">
        <el-form :model="propJson" label-width="auto" style="width: 100%">
            <el-form-item label="标签类型">
                <el-select v-model="propJson.type" placeholder="标签类型" style="width: 100%">
                    <el-option label="默认" value="primary" />
                    <el-option label="成功" value="success" />
                    <el-option label="日志级别" value="info" />
                    <el-option label="告警" value="warning" />
                    <el-option label="危险" value="danger" />
                </el-select>
            </el-form-item>

            <el-form-item label="标签尺寸">
                <el-select v-model="propJson.size" placeholder="标签尺寸" style="width: 100%">
                    <el-option label="默认" value="default" />
                    <el-option label="小号" value="small" />
                    <el-option label="大号" value="large" />
                </el-select>
            </el-form-item>

            <el-form-item label="标签主题">
                <el-select v-model="propJson.effect" placeholder="标签主题" style="width: 100%">
                    <el-option label="深色" value="dark" />
                    <el-option label="浅色" value="plain" />
                </el-select>
            </el-form-item>

            <el-form-item label="是否圆角展示">
                <el-radio-group v-model="propJson.isRound">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="是否可删除">
                <el-radio-group v-model="propJson.isClosable">
                    <el-radio :label="true">是</el-radio>
                    <el-radio :label="false">否</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-divider>标签内容</el-divider>

            <CommonThirdServiceValue :actionInfo="propJson.tagContentInfo ? propJson.tagContentInfo : {}" :commonParam="commonParam" />
        </el-form>
    </div>
</template>

<script setup lang="ts" name="TagDrawer">
import CommonThirdServiceValue from "@/components/lowcode/service/CommonThirdServiceValue.vue";
import {computed, defineProps} from "vue";
import {useLowCodeStore} from "@/stores/lowcode/lowcode.ts";
let props = defineProps(['commonParam']);

let commonParam = computed(() => {return props['commonParam']})

let propJson = computed(() => {return useLowCodeStore().lowCodeDrawerJsonInfo});
</script>

<style scoped lang="less">

</style>